﻿using FanaticRock.Core.Helpers;

namespace FanaticRock.TestDataSource
{
    public class FanbalLocalMachineStorageProvider
    {
        public FanbalLocalMachineStorageProvider()
        {
        

        }

        public IEnumerable<string> GetFiles(string path)
        {
            if (Directory.Exists(path) == false) return [];

            //var path = @"E:\Program Files (x86)\DownKyi-1.5.9\Media";
            
            var files = DirectoryHelper.GetFiles(path, SearchOption.AllDirectories, "*.aac", "*.mp3", "*.flac", "*.wav");

            return files;
        }

        public IEnumerable<string> GetFiles(params string[] paths)
        {
            return paths.SelectMany(p => GetFiles(p));
        }
    }
}
